package www.wmx.com.xssc.util.similarity;

import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.Segment;
import com.hankcs.hanlp.seg.common.Term;

import java.util.List;

public class HanLPPreprocessor {
    public static List<Term> segment(String text) {
        Segment segment = HanLP.newSegment().enableCustomDictionary(false);
        List<Term> termList = segment.seg(text);
        return termList;
    }
}